package com.gitee.feizns.webtemplate.commons.data.order;

import lombok.Getter;
import lombok.Setter;

/**
 * @author feizns
 * @since 2019/5/12 0012
 */
@Getter
public class OrderColumn {

    public OrderColumn(String columnName, Order order) {
        this.columnName = columnName;
        this.order = order;
    }

    public OrderColumn(String columnName, Order order, boolean used) {
        this.columnName = columnName;
        this.order = order;
        this.used = used;
    }

    /**
     * 排序字段
     */
    private String columnName;

    /**
     * 排序规则
     */
    private Order order;

    /**
     * 是否被用到
     */
    @Setter
    private boolean used;

}
